﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SunrayEngine
{
    public partial class PopBox : Form
    {
        public PopBox()
        {
            InitializeComponent();
        }

        public static DialogResult Show(string title = "PopBox", string text = "")
        {
            DialogResult result;

            using (PopBox pop = new PopBox())
            {
                pop.data.Text = text.Replace("\n", "\r\n");
                pop.Text = title;

                result = pop.ShowDialog();
            }

            return result;
        }
    }
}